package cn.kp.learning.dao;

import cn.kp.learning.model.CorePermission;
import cn.kp.learning.model.CorePermissionExample;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface CorePermissionDao {
    int countByExample(CorePermissionExample example);

    int deleteByExample(CorePermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CorePermission record);

    int insertSelective(CorePermission record);

    List<CorePermission> selectByExample(CorePermissionExample example);

    CorePermission selectByPrimaryKey(HashMap<String, Object> hm);

    int updateByExampleSelective(@Param("record") CorePermission record, @Param("example") CorePermissionExample example);

    int updateByExample(@Param("record") CorePermission record, @Param("example") CorePermissionExample example);

    int updateByPrimaryKeySelective(CorePermission record);

    int updateByPrimaryKey(CorePermission record);
}